var faye = require('faye');

var endpoint = process.argv[2] || 'http://localhost:8000/',
    client   = new faye.Client(endpoint);


client.subscribe('/special', function(message) {
  console.log('Got a message!\nTitle:' + message.title + '\nText:' + message.msg);
  
  client.unsubscribe('/special');
});

